package com.netease.videoLoaderDemo.service;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;

public class VideoInfo implements Parcelable {
    public String vId;
    public String vName;
    public ArrayList<String> url;

    protected VideoInfo(Parcel in) {
        vId = in.readString();
        vName = in.readString();
        url = in.createStringArrayList();
    }


    public VideoInfo() {
    }

    public static final Creator<VideoInfo> CREATOR = new Creator<VideoInfo>() {
        @Override
        public VideoInfo createFromParcel(Parcel in) {
            return new VideoInfo(in);
        }

        @Override
        public VideoInfo[] newArray(int size) {
            return new VideoInfo[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(vId);
        dest.writeString(vName);
        dest.writeStringList(url);
    }
}
